package com.example.coffee.items;
public class IndexBarItem {
    // 类别名
    private String name;
    // 记录当前类别是否被选中
    private boolean isSelected = false;
    // 构造方法
    public IndexBarItem(String name) {
        this.name = name;
    }
    // 对应的getter和setter方法
    public String getName() {
        return name;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }
}
